#pragma once

#include<iostream>
#include<map>

#include"Log.hpp"
#include"Connection.hpp"
#include"Epoll.hpp"

class Reactor
{
public:
    Reactor()
    {
        
    }

    bool Delete(int fd)
    {

    }

    bool Add(int fd,uint32_t events)
    {
        return true;
    }

    bool Modify(int fd,uint32_t events)
    {
        return true;
    }

    bool Remove(int fd)
    {

    }

    void Start()
    {

    }
private:


private:
    int _port;
    int _epollFd;
    int _listenSock;
    bool _isRunning;
    map<int,ConnectionSpace::Connection> _connections;
};